Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 5 - Bitmap Shapes / Applying Functions Described Elsewhere to Bitmap Shapes


Functions That Post Errors or Warnings When Applied to Bitmap Shapes

Some QuickDraw GX functions that operate on other types of shapes only post an error or a warning if you try to apply them to a bitmap shape.

For example, the shape-editing functions listed in Table 5-1 operate on the geometric shape types, but not on bitmap shapes. These functions are described in Chapter 2, "Geometric Shapes,"
Shape-editing functions that post errors or warnings when applied to bitmaps
Function nameError or warning posted
GXGetShapePartsshape_operator_may_not_be_a_bitmap
GXSetShapePartsshape_operator_may_not_be_a_bitmap
in this book.

Although you cannot apply the functions listed in Table 5-1 to a bitmap shape, you can use the GXGetBitmapParts and GXSetBitmapParts functions to edit sections of a bitmap. These functions are described in "Editing Bitmaps" beginning on page 5-71.

There are also a number of geometric operations that you cannot apply to bitmap shapes. Table 5-2 lists these functions, which are described in Chapter 4, "Geometric Operations,"
Geometric operations that post errors or warnings when applied to bitmaps
Function nameError or warning posted
GXBreakShapegraphic_type_does_not_contain_points
GXContainsShapeshape_operator_may_not_be_a_bitmap
GXDifferenceShapeshape_operator_may_not_be_a_bitmap
GXExcludeShapeshape_operator_may_not_be_a_bitmap
GXGetShapeCenterillegal_type_for_shape
GXGetShapeDirectiongraphic_type_does_not_have_multiple_contours
GXGetShapeLengthshape_does_not_have_length
GXInsetShapegraphic_type_cannot_be_inset
GXIntersectShapeshape_operator_may_not_be_a_bitmap
GXInvertShapeshape_cannot_be_inverted
GXReduceShapegraphic_type_cannot_be_reduced
GXReverseDifferenceShapeshape_operator_may_not_be_a_bitmap
GXReverseShapecontour_out_of_range
GXShapeLengthToPointshape_does_not_have_length
GXTouchesShapeshape_operator_may_not_be_a_bitmap
GXUnionShapeshape_operator_may_not_be_a_bitmap
in this book.

Most of these geometric operations do not apply to bitmap shapes because the geometry of a bitmap is substantially different from the geometry of a geometric shape.

You can apply a few of the geometric operations to bitmaps, however. These functions are discussed in "Geometric Operations Applicable to Bitmap Shapes" beginning on page 5-58.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help